Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODObject


ReleaseExtension

The ReleaseExtension method releases the specified extension object.

void ReleaseExtension (in ODExtension extension);
extension
A reference to an extension.
DISCUSSION
OpenDoc or an extension object client calls this method to release an extension object that was previously acquired using the AcquireExtension method. If the extension was not previously acquired by the caller, the ReleaseExtension method raises an exception. After this method executes successfully, the specified extension object is no longer guaranteed to be valid.

The ODObject class has no inherent extensions of its own and therefore always raises an exception.

OVERRIDING
Your subclass of ODPart can override this method if your part supports extensions. If your part does not support the specified extension, your override method must call its inherited ReleaseExtension method at the end of your implementation.

EXCEPTIONS
kODErrUnsupportedExtension
This object does not recognize the extension object and therefore cannot release it.
SEE ALSO
The ODObject::AcquireExtension method (page 440).
The ODObject::HasExtension method (page 441).
The ODPart class (page 459).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Using an Extension" on page 444 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help